package com.example.springboot.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author wgc
 * @since 2023-10-02
 */
@Getter
@Setter
@ApiModel(value = "Question对象", description = "")
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("类型 1选择， 2判断，3.问答")
    private Integer type;

    @ApiModelProperty("a选项")
    private String a;

    @ApiModelProperty("b选项")
    private String b;

    @ApiModelProperty("c选项")
    private String c;

    @ApiModelProperty("d选项")
    private String d;

    @ApiModelProperty("分数")
    private Integer score;

    @ApiModelProperty("答案")
    private String answer;

    @ApiModelProperty("解析")
    private String detail;

    @ApiModelProperty("出题人id")
    private Integer userId;

    @ApiModelProperty("课程id")
    private Integer courseId;

    @ApiModelProperty("出题时间")
    private String time;


}
